﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VerticalMenu.ascx.cs"
    Inherits="Bussiness.View.BackEnd.User_Control.VerticalMenu" %>
    <style type="text/css">
        .menu-label {
            border-bottom: dotted 1px;
            margin-left:25px;
        }
    </style> 


<ext:TreePanel ID="TreePanel1" runat="server" AutoWidth="true" AutoHeight="true" 
    Icon="BookOpen" RootVisible="false" AutoScroll="true" Border="false"  >
    
    <Root >
    
        <ext:TreeNode Text="Composers"   >
            <Nodes>
                <ext:TreeNode Text="Quản lý sản phẩm" Icon="UserGray" NodeID="QLSP" Expanded="true">
                    <Nodes>
                        <ext:TreeNode Text="Tìm kiếm SP" Icon="Find" >
                            <Listeners>
                                <Click Fn="ToMG_Product" />
                            </Listeners>
                        </ext:TreeNode>
                    </Nodes>
                    <Nodes>
                        <ext:TreeNode Text="Danh mục SP" NodeID="QLSP_danhmuc" Icon="Cart">
                            <Listeners>
                                <Click Fn="ToMG_Catelogies_Product" />
                            </Listeners>
                        </ext:TreeNode>
                    </Nodes>
                    <Nodes>
                        <ext:TreeNode Text="Thên mới SP" Icon="Add" NodeID="QLSP_themmoi">
                            <Listeners>
                                <Click Handler="window.location = 'Product_Detail.aspx'" />
                            </Listeners>
                        </ext:TreeNode>
                    </Nodes>
                </ext:TreeNode>
                <ext:TreeNode Text="Quản lý hóa đơn" Icon="ReportEdit" Expanded="true">
                <Nodes>
                        <ext:TreeNode Text="Tìm kiếm HĐ" Icon="Find">
                            <Listeners>
                                <Click Handler=" window.location = 'MG_Orders.aspx'" />
                            </Listeners>
                        </ext:TreeNode>
                        <ext:TreeNode Text="Thêm mới HĐ" Icon="ReportAdd">
                            <Listeners>
                                <Click Handler=" window.location = 'Order_Detail.aspx'" />
                            </Listeners>
                        </ext:TreeNode>
                </Nodes>
                
                    
                </ext:TreeNode>
                <ext:TreeNode Text="Quản lý bài viết" Icon="UserGray" NodeID="QLBV">
                    <Nodes>
                        <ext:TreeNode Text="Danh mục bài viết">
                            <Listeners>
                                <Click Fn = "ToMG_Catelogies_Artical" />
                            </Listeners>
                        </ext:TreeNode>
                        <ext:TreeNode Text="Quản lý bài viết">
                            <Listeners>
                                <Click Fn = "ToMG_Artical" />
                            </Listeners>
                        </ext:TreeNode>

                        
                    </Nodes>
                </ext:TreeNode>
                <ext:TreeNode Text="Quản lý khách hàng" Icon="UserGray" NodeID="QLKH">
                </ext:TreeNode>
                <ext:TreeNode Text="Báo cáo thống kê" Icon="UserGray" NodeID="BCTK" >
                    <Nodes>
                        <ext:TreeNode Text="Báo cáo hàng tồn" Icon="Report">
                            <Listeners>
                                <Click Fn="ToBC_Product_Store" />
                            </Listeners>
                        </ext:TreeNode>
                        <ext:TreeNode Text="Doanh số BH của NV" Icon="Report">
                            <Listeners>
                                <Click Fn="ToBC_DSBH_NV" />
                            </Listeners>
                        </ext:TreeNode>
                        <ext:TreeNode Text="Báo cáo doanh thu" Icon="Report">
                            <Listeners>
                                <Click Fn="ToBC_DoanhThu" />
                            </Listeners>
                        </ext:TreeNode>
                    </Nodes>
                </ext:TreeNode>
            </Nodes>
        </ext:TreeNode>
    </Root>
    
    
    

</ext:TreePanel>
                    
                        
                      
<ext:Label runat="server" ID="userOnline" IDMode="Static" Icon="User">
</ext:Label>

<script language="javascript">
    function ToMG_Orders() {
        window.location = 'MG_Orders.aspx';
    }
    function ToMG_Product() {
        window.location = 'MG_Products.aspx';
    }
    function ToMG_Catelogies_Product() {
        window.location = 'MG_Catelogies_Product.aspx';
    }
    function ToBC_Product_Store() {
        window.location = 'BC_HangTon.aspx';
    }

    function ToBC_DSBH_NV() {
        window.location = 'BC_DSBH_NV.aspx';
    }

    function ToBC_DoanhThu() {
        window.location = 'BC_DoanhThuCH.aspx';
    }

    function ToMG_Catelogies_Artical() {
        window.location = 'MG_Catelogies_Artical.aspx';
    }

    function ToMG_Artical() {
        window.location = 'MG_Artical.aspx';
    }                          
</script>

